package com.renrenyou.duanshipin.util;

import com.renrenyou.duanshipin.net.Constance;

public class NetUtil {

    public static void error(int errorCode) {
        if (errorCode == 401) {
            logout();
        }
    }

    public static void logout() {
        Constance.TOKEN = null;
        Constance.isLogin = false;
        SharedPref.getInstance().clearAllExcludeKey("install");
    }
}
